{template 'common/header'}
<style>
	.dag,.dagtwo,.dagthree,.dagfor{
		display:none;
	}
</style>
<ul class="nav nav-tabs">
	<li><a href="{php echo $this->createWebUrl('articles')}">跑道列表</a></li>
</ul>
<div class="clearfix">
	<form action="" method="post" class="form-horizontal form" enctype="multipart/form-data" onsubmit="return formcheck()">
		<input type="hidden" name="id" value="{$info['id']}">
		<div class="panel panel-default">
			<div class="panel-heading">
				设置
			</div>
			<div class="panel-body">
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style="color:red">*</span>经度</label>
					<div class="col-sm-9 col-xs-12">
						<input type="text"  name="lng" class="form-control" value="{$info['lng']}">
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style="color:red">*</span>纬度</label>
					<div class="col-sm-9 col-xs-12">
						<input type="text"  name="lat" class="form-control" value="{$info['lat']}">
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style="color:red">*</span>位置</label>
					<div class="col-sm-9 col-xs-12">
						<input type="text" id="advname" name="address" class="form-control" value="{$info['address']}">
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style="color:red">*</span>跑道设备数量</label>
					<div class="col-sm-9 col-xs-12">
						<input type="text" id="num" name="num" class="form-control" value="{$info['num']}">
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style="color:red">*</span>总里程(km)</label>
					<div class="col-sm-9 col-xs-12">
						<input type="text" id="km" name="km" class="form-control" value="{$info['km']}">
					</div>
				</div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">跑圈类型</label>
                    <div class="col-md-6">
                        <select name="status" class="form-control s1 select2-hidden-accessible" tabindex="-1" aria-hidden="true">
                            <option value="1" {if $info['status']==1}selected="selected"{/if}>绕圈</option>
                            <option value="2" {if $info['status']==2}selected="selected"{/if}>单向</option>
                            <option value="3" {if $info['status']==3}selected="selected"{/if}>往返</option>
                        </select>
                    </div>
                </div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style="color:red">*</span>两点间预计用时(分钟)</label>
					<div class="col-sm-9 col-xs-12">
						<input type="text" id="minute" name="minute" class="form-control" value="{$info['minute']}">
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style="color:red">*</span>地点描述</label>
					<div class="col-sm-9 col-xs-12">
						<input type="text"  name="shop_name" class="form-control" value="{$info['shop_name']}">
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">图标</label>
					<div class="col-sm-9 col-xs-12">
						{php echo tpl_form_field_image('avatar',$info[avatar]);}
						<span class="help-block">图标图片，建议400*150</span>
					</div>
				</div>
			</div>
		</div>
		<div class="form-group col-sm-12">
			<input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1">
			{if empty($info['id'])}
				<input type="hidden" name="act" value="add">
			{else}
				<input type="hidden" name="act" value="edit">
			{/if}
		</div>
	</form>

</div>

{template 'common/footer'}
